import request from '../utils/request';

export async function getActivity(data) {
  return request({
    url: '/activity/list',
    method: 'GET',
    data
  })
}

// 申请作为校园大使
export async function activityApply(data) {
  return request({
    url: '/activityApply/save',
    method: 'POST',
	header: 'application/json',
    data
  })
}

// 获取校园大使报名情况
export async function getApplyList(data) {
  return request({
    url: '/activityApply/getList',
    method: 'GET',
    data
  })
}

export async function updateActivityApply(data) {
  return request({
    url: '/activityApply/update',
    method: 'PUT',
    data
  })
}

export async function deleteActivityApply(data) {
  return request({
    url: '/activityApply/delete',
    method: 'DELETE',
    data
  })
}
